package palms.client.domain;

import java.util.LinkedList;

import javax.crypto.SealedObject;
import javax.crypto.spec.SecretKeySpec;

import palms.location.results.ALocation;

public class User {
	
	private String username;
	private String password;
	private double latitude;
	private double longitude;
	private String service;
	private SealedObject ticket_si;
	private SealedObject ticket_sl;
	private SealedObject ticket_tgs;
	private SecretKeySpec sisessionkey;
	private SecretKeySpec slsessionkey;
	private SecretKeySpec tgssessionkey;
	private LinkedList<ALocation> res;
	
	public User(){
		this.username = "";
		this.password = "";
		this.service = "";
		this.latitude = 0;
		this.longitude = 0;
		this.ticket_si = null;
		this.ticket_sl = null;
		this.ticket_tgs = null;
		this.sisessionkey = null;
		this.slsessionkey = null;
		this.tgssessionkey = null;
		this.res = new LinkedList<ALocation>();
	}

	public SealedObject getTicket_si() {
		return ticket_si;
	}

	public void setTicket_si(SealedObject ticket_si) {
		this.ticket_si = ticket_si;
	}

	public SealedObject getTicket_sl() {
		return ticket_sl;
	}

	public void setTicket_sl(SealedObject ticket_sl) {
		this.ticket_sl = ticket_sl;
	}

	public SealedObject getTicket_tgs() {
		return ticket_tgs;
	}

	public void setTicket_tgs(SealedObject ticket_tgs) {
		this.ticket_tgs = ticket_tgs;
	}

	public SecretKeySpec getSisessionkey() {
		return sisessionkey;
	}

	public void setSisessionkey(SecretKeySpec sisessionkey) {
		this.sisessionkey = sisessionkey;
	}

	public SecretKeySpec getSlsessionkey() {
		return slsessionkey;
	}

	public void setSlsessionkey(SecretKeySpec slsessionkey) {
		this.slsessionkey = slsessionkey;
	}

	public SecretKeySpec getTgssessionkey() {
		return tgssessionkey;
	}

	public void setTgssessionkey(SecretKeySpec tgssessionkey) {
		this.tgssessionkey = tgssessionkey;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
		this.res = new LinkedList<ALocation>();
	}

	public void setRes(LinkedList<ALocation> res) {
		this.res = res;
	}

	public LinkedList<ALocation> getRes() {
		return res;
	}
		
}
